package com.wzy.shirostudy.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: shiro-study
 * @description: 存取token
 * @author: 1
 * @create: 2020-04-16 16:39
 **/
public class JwtToken  implements AuthenticationToken {

    /**
     * 密钥
     */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
